From: Andreas Schwab Date: Wed, 24 Dec 2003 16:45:05 +0000 (+0000) Subject: Check for . Include it before X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~24789 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=23d7e42d2bb33f33b515d8a6f472c8a55c476c3e;p=emacs.git Check for . Include it before including . Move check for before its use. --- diff --git a/configure.in b/configure.in index aa8bbeb065b..8663ce9765c 100644 --- a/configure.in +++ b/configure.in @@ -1507,6 +1507,12 @@ if test $emacs_cv_struct_exception != yes; then AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.]) fi +AC_CHECK_HEADERS(sys/socket.h) +AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT +#if HAVE_SYS_SOCKET_H +#include +#endif]) + dnl checks for structure members AC_STRUCT_TM AC_STRUCT_TIMEZONE @@ -1516,7 +1522,14 @@ AC_CHECK_MEMBER(struct tm.tm_gmtoff, [#include ]) AC_CHECK_MEMBERS([struct ifreq.ifr_flags, struct ifreq.ifr_hwaddr, struct ifreq.ifr_netmask, struct ifreq.ifr_broadaddr, - struct ifreq.ifr_addr], , ,[#include ]) + struct ifreq.ifr_addr], , , + [AC_INCLUDES_DEFAULT +#if HAVE_SYS_SOCKET_H +#include +#endif +#if HAVE_NET_IF_H +#include +#endif]) dnl checks for compiler characteristics @@ -2510,7 +2523,7 @@ dnl Fixme: Not used. Should this be HAVE_SOCKETS? [Define to 1 if you have inet sockets.]) fi -AC_CHECK_HEADERS(sys/ioctl.h net/if.h) +AC_CHECK_HEADERS(sys/ioctl.h) if test -f /usr/lpp/X11/bin/smt.exp; then AC_DEFINE(HAVE_AIX_SMT_EXP, 1,